package com.xu.demo.design;

import java.util.concurrent.TimeUnit;

/**
 *
 * @author xudenghui
 * @create 2023-07-24 11:47
 **/
public interface CacheService {

    String get(final String key, int redisType);

    void set(String key, String value, int redisType);

    void set(String key, String value, long timeout, TimeUnit timeUnit, int redisType);

    void del(String key, int redisType);

}
